<?php if (!defined('insite')) die("no access"); 
	if ( isset($_POST["selectedchar"]) or strlen($_SESSION["character"])>0)
	{
		chk_user();
		if(strlen($_SESSION["character"])>2)
		{
			require "opt.php";
			$db = new connect ($config["ctype"], $config["db_host"], $config["db_name"], $config["db_user"], $config["db_upwd"],$config["odbc_driver"],$config["debug"]); 
			own_char(validate($_SESSION["character"]),validate($_SESSION["user"]));
			$infochar = $db->fetchrow($db->query("SELECT cLevel, LevelUpPoint, Class, Strength,Dexterity,Vitality,Energy,Leadership,".$config["res_colum"].",CtlCode FROM Character WHERE Name='".validate($_SESSION["character"])."'"));
			if ($infochar[9]==1) $bbf="<span class=\"bannedfont\">Banned!</span>"; else $bbf="";
			$content = new content();
			$content->set('|classpicture|', classpicture($infochar[2]));
			$content->set('|character|', $bbf." ".$_SESSION["character"]);
			$content->set('|Level|', $infochar[0]);
			$content->set('|Reset|', $infochar[8]);
			$content->set('|Class|', classname($infochar[2]));
			$content->set('|str|', stats65($infochar[3]));
			$content->set('|agi|', stats65($infochar[4]));
			$content->set('|vit|', stats65($infochar[5]));
			$content->set('|ene|', stats65($infochar[6]));
			$content->set('|cmd|', stats65($infochar[7]));
			$content->set('|getcharmenu|', getcharmenu(1));
			$content->out_content("theme/".$config["theme"]."/them/chinfo.them");
		}
		else{echo "<span class='warnms'>".warning1_msg."</span>";}
	}else{echo "<span class='warnms'>".char_notselect."</span>";}
?>